package messages;
import java.io.Serializable;

import projectManagementServer.*;

public class UpdateMessage implements Message, Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 598335740680134562L;
	Project newProject;
	Files newFile;
	String newFileList;
	Member newMember;
	String newMemberList;
	String newUpdate;
	
	public UpdateMessage(String newUpdate) {
		newProject = new Project();
		newFile = new Files();
		newFileList = " ";
		newMember = new Member();
		newMemberList = " ";
		this.newUpdate = newUpdate;
	}
	
	public void newProject(Project proj){
		newProject = proj;
	}
	
	public void newFile(Files file){
		newFile = file;
	}
	
	public void newFileList(String file){
		newFileList = file;
	}
	
	public void newMember(Member mem){
		newMember = mem;
	}
	
	public void newMemberList(String mem){
		newMemberList = mem;
	}
	
	public Project getNewProject(){
		return newProject;
	}
	
	public Files getNewFile(){
		return newFile;
	}
	
	public String getNewFileList(){
		return newFileList;
	}
	
	public Member getNewMember(){
		return newMember;
	}
	
	public String getNewMemberList(){
		return newMemberList;
	}
	
	public String getNewUpdate(){
		return newUpdate;
	}

	@Override
	public String getUser() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getAvatar() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getTime() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getMsg() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public String getType() {
		return Message.updateKey;
	}

	@Override
	public String getChatRoom() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getMsgLength() {
		// TODO Auto-generated method stub
		return 0;
	}
}
